Optimal. Leaf size=100 \[ \frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}+\frac{i b}{24 c (-c x+i)}-\frac{b}{24 c (-c x+i)^2}-\frac{i b}{18 c (-c x+i)^3}-\frac{i b \tan ^{-1}(c x)}{24 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0512029, antiderivative size = 100, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {4862, 627, 44, 203} \[ \frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}+\frac{i b}{24 c (-c x+i)}-\frac{b}{24 c (-c x+i)^2}-\frac{i b}{18 c (-c x+i)^3}-\frac{i b \tan ^{-1}(c x)}{24 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4862
Rule 627
Rule 44
Rule 203
Rubi steps
\begin{align*} \int \frac{a+b \tan ^{-1}(c x)}{(1+i c x)^4} \, dx &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \frac{1}{(1+i c x)^3 \left (1+c^2 x^2\right )} \, dx\\ &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \frac{1}{(1-i c x) (1+i c x)^4} \, dx\\ &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \left (\frac{1}{2 (-i+c x)^4}+\frac{i}{4 (-i+c x)^3}-\frac{1}{8 (-i+c x)^2}+\frac{1}{8 \left (1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{i b}{18 c (i-c x)^3}-\frac{b}{24 c (i-c x)^2}+\frac{i b}{24 c (i-c x)}+\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{24} (i b) \int \frac{1}{1+c^2 x^2} \, dx\\ &=-\frac{i b}{18 c (i-c x)^3}-\frac{b}{24 c (i-c x)^2}+\frac{i b}{24 c (i-c x)}-\frac{i b \tan ^{-1}(c x)}{24 c}+\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}\\ \end{align*}
Mathematica [A] time = 0.0438442, size = 73, normalized size = 0.73 \[ \frac{-24 a+b \left (-3 i c^2 x^2-9 c x+10 i\right )+3 b \left (-i c^3 x^3-3 c^2 x^2+3 i c x-7\right ) \tan ^{-1}(c x)}{72 c (c x-i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 93, normalized size = 0.9 \begin{align*}{\frac{{\frac{i}{3}}a}{c \left ( 1+icx \right ) ^{3}}}+{\frac{{\frac{i}{3}}b\arctan \left ( cx \right ) }{c \left ( 1+icx \right ) ^{3}}}-{\frac{{\frac{i}{24}}b\arctan \left ( cx \right ) }{c}}-{\frac{b}{24\,c \left ( cx-i \right ) ^{2}}}+{\frac{{\frac{i}{18}}b}{c \left ( cx-i \right ) ^{3}}}-{\frac{{\frac{i}{24}}b}{c \left ( cx-i \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.06591, size = 112, normalized size = 1.12 \begin{align*} -\frac{3 i \, b c^{2} x^{2} + 9 \, b c x +{\left (3 i \, b c^{3} x^{3} + 9 \, b c^{2} x^{2} - 9 i \, b c x + 21 \, b\right )} \arctan \left (c x\right ) + 24 \, a - 10 i \, b}{72 \, c^{4} x^{3} - 216 i \, c^{3} x^{2} - 216 \, c^{2} x + 72 i \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.20688, size = 235, normalized size = 2.35 \begin{align*} \frac{-6 i \, b c^{2} x^{2} - 18 \, b c x +{\left (3 \, b c^{3} x^{3} - 9 i \, b c^{2} x^{2} - 9 \, b c x - 21 i \, b\right )} \log \left (-\frac{c x + i}{c x - i}\right ) - 48 \, a + 20 i \, b}{144 \, c^{4} x^{3} - 432 i \, c^{3} x^{2} - 432 \, c^{2} x + 144 i \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.13206, size = 232, normalized size = 2.32 \begin{align*} \frac{3 \, b c^{3} x^{3} \log \left (c x + i\right ) - 3 \, b c^{3} x^{3} \log \left (c x - i\right ) - 9 \, b c^{2} i x^{2} \log \left (c x + i\right ) + 9 \, b c^{2} i x^{2} \log \left (c x - i\right ) - 6 \, b c^{2} i x^{2} - 9 \, b c x \log \left (c x + i\right ) + 9 \, b c x \log \left (c x - i\right ) - 18 \, b c x + 3 \, b i \log \left (c x + i\right ) - 3 \, b i \log \left (c x - i\right ) + 20 \, b i - 48 \, b \arctan \left (c x\right ) - 48 \, a}{144 \,{\left (c^{4} x^{3} - 3 \, c^{3} i x^{2} - 3 \, c^{2} x + c i\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]